/*
 *
 * Copyright (C) 2012 Walter Lütgenau
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 */
package offset.nodes.client.virtual.model.jcr;

import javax.jcr.Value;
import javax.jcr.nodetype.NodeDefinition;
import javax.jcr.nodetype.NodeType;
import javax.jcr.nodetype.PropertyDefinition;

class SimpleNodeType implements NodeType {
    String name = null;
    
    public SimpleNodeType(NodeType nodeType) {
        if (nodeType != null)
            this.name = nodeType.getName();
    }
    
    public SimpleNodeType(String name) {
        this.name = name;
    }

    public boolean canAddChildNode(String arg0) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean canAddChildNode(String arg0, String arg1) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean canRemoveItem(String arg0) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean canSetProperty(String arg0, Value arg1) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean canSetProperty(String arg0, Value[] arg1) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public NodeDefinition[] getChildNodeDefinitions() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public NodeDefinition[] getDeclaredChildNodeDefinitions() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public PropertyDefinition[] getDeclaredPropertyDefinitions() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public NodeType[] getDeclaredSupertypes() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public String getName() {
        return name;
    }

    public String getPrimaryItemName() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public PropertyDefinition[] getPropertyDefinitions() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public NodeType[] getSupertypes() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean hasOrderableChildNodes() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean isMixin() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean isNodeType(String arg0) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
